package com.ithui.tidal.common.thread;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author: ithui
 * @CreateTime: 2025-07-31
 * @Description: 自定义线程异常处理器,用于捕获线程中的异常并进行日志记录
 */
@Slf4j
public class MyUncaughtExceptionHandler implements Thread.UncaughtExceptionHandler {

    @Override
    public void uncaughtException(Thread t, Throwable e) {
        log.error("Exception in thread " + t.getName(), e);
    }
}
